package com.bookm.service.Impl;

import com.bookm.service.MkyService;
import com.bookmg.entity.Book;
import com.bookmg.entity.Btype;
import com.bookmg.entity.UsersMky;
import com.bookmg.mapper.MkyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MkyServiceImpl implements MkyService {
    @Autowired(required = false)
    private MkyMapper mkyMapper;

    @Override
    public List<UsersMky> getAllUserCar() {
        return mkyMapper.selectAllUserCar();
    }

    @Override
    public List<Book> getAllBook() {
        return mkyMapper.selectAllBook();
    }

    @Override
    public List<Btype> getAllBtype() {
        return mkyMapper.selectAllBookType();
    }

    @Override
    public List<Book> recommendBook() {
        return mkyMapper.recommendBook();
    }
}
